#include <stdio.h>

int main()
{
	int a[200] = {0};
	int n = 0;
	scanf("%d", &n);
	for ( int i = 0; i < n; i++ ) {
		scanf("%d", &a[i]);
	}
	
	for ( int i = 0; i < n; i++ ) {
		int tmp = a[i];
		int count = 0;
		for ( int j = i; j >= 0; j-- ) {
			if ( tmp > a[j] ) {
				count ++;
			}
		}
		printf("%d ", count);
	}
	return 0;
}
